package com.wframe.project.jnd.entity;

import javax.persistence.Column;
import java.math.BigInteger;
import java.util.Date;

/**
 * Created by lwb on 2017/5/31.
 */
public class Promotion {
    public enum Platform {
        COMMON("全平台"),
        PC("PC端"),
        WE("微商城");

        Platform(String display) {
            this.display = display;
        }

        private String display;

        public String getDisplay() {
            return display;
        }

        public void setDisplay(String display) {
            this.display = display;
        }
    }

    public enum PruductType {
        ALL,
        SINGLE,
        SOME,
        CATEGORY
    }

    public enum Type {
        FLASH_SALE,
        BUY_SEND,
        MONEY_OFF,
        PURCHASE_GIFT
    }

    public enum Weight {
        FLASH_SALE,
        BUY_SEND,
        MONEY_OFF
    }

    public enum Priority {
        ZERO,
        FIRST
    }

    private Integer id;
    private Type type;
    private Platform platform;
    private String name;
    private String description;
    private Date startTime;
    @Column(name = "end_time")
    private Date endTime;
    private Integer state;
    private Integer time;
    private String usergrade;
    private Weight weight;
    private Priority priority;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public Platform getPlatform() {
        return platform;
    }

    public void setPlatform(Platform platform) {
        this.platform = platform;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getTime() {
        return time;
    }

    public void setTime(Integer time) {
        this.time = time;
    }

    public String getUsergrade() {
        return usergrade;
    }

    public void setUsergrade(String usergrade) {
        this.usergrade = usergrade;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Weight getWeight() {
        return weight;
    }

    public void setWeight(Weight weight) {
        this.weight = weight;
    }

    public Priority getPriority() {
        return priority;
    }

    public void setPriority(Priority priority) {
        this.priority = priority;
    }
}
